﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace WoWGRA
{
    /// <summary>
    /// Interaction logic for MainLoadScreen.xaml
    /// </summary>
    public partial class MainLoadScreen : Window
    {
        public MainLoadScreen()
        {
            InitializeComponent();
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {

            string selection = comboboxmain.SelectedValue.ToString();
            string[] selectioninfo = selection.Split(':');
            selection = selectioninfo[1];
            
            

            if (selection == " Select Raiders")

            {
                AvailableRaiders ARwind = new AvailableRaiders();
                ARwind.Owner = this;
                ARwind.Show();
            }
            if (selection == " Load Raiders")
            {
                MainRaider MRwind = new MainRaider();
                MRwind.Owner = this;
                MRwind.Show();
            }
            if (selection == " Update Wishlist")
            {
                RaiderInfo RIwind = new RaiderInfo();
                RIwind.Owner = this;
                RIwind.Show();
            }
            if (selection == " Select Instance Screen")
            {
                MainWindow MAINwind = new MainWindow();
                MAINwind.Owner = this;
                MAINwind.Show();
            }
            
        }
    }
}
